/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.report.loan;

import src.report.saving.*;
import java.io.IOException;
import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.JRException;
import src.report.AbstractBaseReportBean;

/**
 *
 * @author Yusup Jauhari Shandi <in.visi>
 */
public class RptAnalisaKolektibilitasBean extends AbstractBaseReportBean{
    private final String COMPILE_FILE_NAME = "saving/rptNominatifTabungan";
    @Override
    protected JRDataSource getJRDataSource() {
        RptNominatifTabunganDataSource ds = new RptNominatifTabunganDataSource();
        return ds;
    }

    @Override
    protected String getCompileFileName() {
        return  COMPILE_FILE_NAME;
    }
    
    public String execute() {
		try {
                       super.getReportParameters().put("p_periode", "Tahun 2012");
			super.prepareReport();
		} catch (JRException | IOException e) {
			// make your own exception handling
		}
		
		return null;
	}
}
